package cn.jobstart.common.spider;

import cn.jobstart.common.redis.RedisUtil;
import cn.jobstart.props.FileConfig;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author sunke
 * @version 1.0
 * @Description
 * @date 2023-12-06 10:57
 */
@Component
public class TokenUtil {


    @Resource
    private RedisUtil redisUtil;

    public RedisUtil getRedisUtil() {
        return redisUtil;
    }

    public FileConfig getFileConfig() {
        return fileConfig;
    }

    @Resource
    private FileConfig fileConfig;



    public void sleep(long sleepTime) {
        try {
            Thread.sleep(sleepTime);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }



}
